home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August / CHIP_CD_2005-08.iso / software / BB / BrowserBobDev_en.exe / {app} / Help / whdata / whtoc.js < prev   
Encoding:
JavaScript  |  2005-05-12  |  586 b   |  31 lines

  1. //    WebHelp 5.10.001
  2. // const strings
  3. var gaProj = new Array();
  4. var gsRoot = "";
  5.  
  6. function setRoot(sRoot)
  7. {
  8.     gsRoot = sRoot
  9. }
  10.  
  11. function aPE(sProjPath, sRootPath)
  12. {
  13.     gaProj[gaProj.length] = new tocProjEntry(sProjPath, sRootPath);
  14. }
  15.  
  16. function tocProjEntry(sProjPath, sRootPath) 
  17. {
  18.     if(sProjPath.lastIndexOf("/")!=sProjPath.length-1)
  19.         sProjPath+="/";    
  20.     this.sPPath = sProjPath;
  21.     this.sRPath = sRootPath;
  22. }
  23.  
  24.  
  25. function window_OnLoad()
  26. {
  27.     if (parent && parent != this && parent.projReady) {
  28.         parent.projReady(gsRoot, gaProj);
  29.     }
  30. }
  31. window.onload = window_OnLoad;